/**
 * @Date: 2022-03-08 19:25:22
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-03-08 21:22:56
 * @FilePath: \zhihuReal\middlewares\auth.js
 * @Description: 中间件
 */
const jwt = require('koa-jwt')
const {
    secret
} = require('../config')
//验证是否登陆
const auth = jwt({
    secret
})

module.exports = {
    auth,
}